home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD-ROM Magazine 28 Bonus
/
CDRomMagazine-SoftKey-ArtPassion-FrenchVersion-Win31Mac.bin
/
data
/
crmuspl.dir
/
00021_Script_Kadin Handler
< prev
next >
Wrap
Text File
|
1996-05-26
|
2KB
|
96 lines
on openX
global xobjPath
if the machinetype = 256 then
set xobjPath = the pathName & "XObjs\" -- PC
else
set xobjPath = the pathName & "XObjs:" -- Mac
end if
end
on startMovie
setAuxiliarySearch
global xobjPath
openX
if the machineType = 256 then CreateMemoryObj
if the machineType = 256 then openxlib xobjPath & "Fill.DLL"
else openxlib xobjPath & "FillXObj"
allocateXObject
end startMovie
on stopMovie
global xobjPath
disposeXObject
if the machineType = 256 then closexlib xobjPath & "Fill.DLL"
else closexlib xobjPath &"FillXObj"
if the machineType = 256 then KillMemoryObj
end stopMovie
------------- FOR PC ONLY
on CreateMemoryObj
global memoryObj,xobjPath -- for PC only
openxlib xobjPath & "Memory.DLL"
if objectP(memoryObj) then memoryObj(mDispose)
set memoryObj = Memory(mNew)
end CreateMemoryObj
on KillMemoryObj
global memoryObj,xobjPath
if objectP(memoryObj) then memoryObj(mDispose)
closexlib xobjPath &"Memory.DLL"
end KillMemoryObj
on updateDisplay
getRGBList
getColorCheck
end updateDisplay
on allocateXObject
global fillObject, objectStatus
if objectP(fillObject) then fillObject(mDispose)
set fillObject = Fill(mNew, the left of sprite 1, the top of sprite 1, the ¼
right of sprite 1, the bottom of sprite 1)
end allocateXObject
on disposeXObject
global fillObject, objectStatus
if objectP(fillObject) then fillObject(mDispose)
end disposeXObject
on closeWindow
stopmovie
tell the stage to cleanUpMIAW
end closeWindow
on getRGBList
global RGBList
set Red = string( fillObject(mGetRedColor, the mouseH, the mouseV))
set Green = string( fillObject(mGetGreenColor, the mouseH, the mouseV))
set Blue = string( fillObject(mGetBlueColor, the mouseH, the mouseV))
set RGBList = [Red,Green,Blue]
put RGBList into field "RGB"
end